package com.gmcc.tripleplay.control;

import com.gmcc.tripleplay.entity.UserLogin;
import com.sara.loader.Response;

public class UserLoginResponse extends Response {

    public UserLogin userInfo;

    public UserLoginResponse() {

    }

    public UserLoginResponse(Response response) {
        setCode(response.getCode());
        setDescription(response.getDescription());
        if (response.getResponseObject() != null
                && response.getResponseObject() instanceof UserLogin) {
            userInfo = (UserLogin) response.getResponseObject();
        }
    }
}
